let express = require("express");
let app = express();
let WebSocket = require('ws');

// app.listen(3000)

let wss = new WebSocket.Server({port:3000});

wss.on('connection', function (ws) {
    ws.on('message', function (data) {
        console.log(data)
        ws.send("我不是fql");
    })
})